package com.zlict.admin.domain;

import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zlict.common.annotation.Excel;
import com.zlict.common.core.domain.BaseEntity;

/**
 * 物料领用-单据对象 rd_voucher
 * 
 * @author ruoyi
 * @date 2025-06-18
 */
public class RdVoucher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 单据编号 
 */
    @Excel(name = "单据编号")
    private String receiptNumber;

    /** 单据类型 
 */
    @Excel(name = "单据类型")
    private String receiptType;

    /** 项目编号 */
    @Excel(name = "项目编号")
    private String projectNumber;


    private String projectId;

    /** 项目节点 */
    @Excel(name = "项目节点")
    private String projectNode;

    /** 领用人 */
    @Excel(name = "领用人")
    private String recipient;

    /** 领用部门 */
    @Excel(name = "领用部门")
    private String recipientdept;

    /** 领用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recipientdate;

    /** 材料列表 */
    private List<RdMaterials> materials;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setReceiptNumber(String receiptNumber) 
    {
        this.receiptNumber = receiptNumber;
    }

    public String getReceiptNumber() 
    {
        return receiptNumber;
    }

    public void setReceiptType(String receiptType) 
    {
        this.receiptType = receiptType;
    }

    public String getReceiptType() 
    {
        return receiptType;
    }

    public void setProjectNumber(String projectNumber) 
    {
        this.projectNumber = projectNumber;
    }

    public String getProjectNumber() 
    {
        return projectNumber;
    }

    public void setProjectNode(String projectNode) 
    {
        this.projectNode = projectNode;
    }

    public String getProjectNode() 
    {
        return projectNode;
    }

    public void setRecipient(String recipient) 
    {
        this.recipient = recipient;
    }

    public String getRecipient() 
    {
        return recipient;
    }

    public void setRecipientdept(String recipientdept) 
    {
        this.recipientdept = recipientdept;
    }

    public String getRecipientdept() 
    {
        return recipientdept;
    }

    public void setRecipientdate(Date recipientdate) 
    {
        this.recipientdate = recipientdate;
    }

    public Date getRecipientdate() 
    {
        return recipientdate;
    }

    public List<RdMaterials> getMaterials() 
    {
        return materials;
    }

    public void setMaterials(List<RdMaterials> materials) 
    {
        this.materials = materials;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("receiptNumber", getReceiptNumber())
            .append("receiptType", getReceiptType())
            .append("projectNumber", getProjectNumber())
            .append("projectNode", getProjectNode())
            .append("recipient", getRecipient())
            .append("recipientdept", getRecipientdept())
            .append("recipientdate", getRecipientdate())
            .append("materials", getMaterials())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
